home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / RENAME.HLP < prev    next >
Text File  |  1987-04-05  |  2KB  |  47 lines

  1. -----------------------  RENAME - Internal DOS Command  ------------------------
  2.  
  3. RENAME changes the name of a file.  Only the directory entry for the renamed
  4.    file is changed.  The file remains in the same directory on the same disk
  5.    after the name is changed.
  6.  
  7. FORMAT:   RENAME [d:][path]filename1[.ext1]  filename2[.ext2]
  8.  
  9. REMARKS:
  10.  
  11.    d:        - the drive letter.  If omitted the default drive is assumed.
  12.    path      - the directory path of the file to be renamed.  If omitted the
  13.                current directory is assumed.
  14.    filename1 - the filename of file to be renamed.
  15.    .ext1     - the filename extension of the file to be renamed.
  16.  
  17.    filename2 - the new filename of the file.
  18.    .ext2     - the new filename extension of the file.
  19.  
  20.    Global characters (* and ?) may be used in the filenames and extensions to
  21.    rename multiple files with one command.
  22.  
  23.    Subdirectories cannot be renamed.
  24.  
  25.    RENAME may be abbreviated REN.
  26.  
  27.  
  28. EXAMPLES:
  29.  
  30. Rename the file ABC to XYZ.  ABC is in the current directory on the default
  31. drive:
  32.  
  33.           RENAME ABC XYZ
  34.  
  35.  
  36. Rename all files in the current directory on the default drive that have the
  37. filename extension .CUR.  Retain the original filenames but change the
  38. extensions to .OLD:
  39.  
  40.           RENAME *.CUR *.OLD
  41.  
  42.  
  43. Rename MYFILE to YOURFILE.  MYFILE is on drive B in the directory MEMOS.  MEMOS
  44. is a subdirectory of the root directory.  The current drive is A:
  45.  
  46.           RENAME B:\MEMOS\MYFILE YOURFILE
  47.